package com.ruoyi.cm.service;

import com.ruoyi.cm.domain.vo.CmPeriodMeasurementVo;
import com.ruoyi.cm.domain.bo.CmPeriodMeasurementBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 中间计量Service接口
 *
 * @author zxs
 * @date 2024-09-28
 */
public interface ICmPeriodMeasurementService {

    /**
     * 查询中间计量
     */
    CmPeriodMeasurementVo queryById(Long id);

    /**
     * 查询中间计量列表
     */
    TableDataInfo<CmPeriodMeasurementVo> queryPageList(CmPeriodMeasurementBo bo, PageQuery pageQuery);

    /**
     * 查询中间计量列表
     */
    List<CmPeriodMeasurementVo> queryList(CmPeriodMeasurementBo bo);

    /**
     * 新增中间计量
     */
    Boolean insertByBo(CmPeriodMeasurementBo bo);

    /**
     * 修改中间计量
     */
    Boolean updateByBo(CmPeriodMeasurementBo bo);

    /**
     * 校验并批量删除中间计量信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<CmPeriodMeasurementVo> getlist(CmPeriodMeasurementBo bo);

    List<CmPeriodMeasurementVo> getbdlist(CmPeriodMeasurementBo bo);
}
